/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package BeansGerenciaveis;

import DAO.MetaavaliacaoDAO;
import bean.Metaavaliacao;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ApplicationScoped;

/**
 *
 * @author jorgepereira
 */
@ManagedBean
@ApplicationScoped
public class MetaListarBean {

    /**
     * Creates a new instance of MetaListarBean
     */
    public MetaListarBean() {
    }
    
    private List<Metaavaliacao> metaavaliacoes;

    public List<Metaavaliacao> getMetaavaliacoes() {
        if(metaavaliacoes == null){
            metaavaliacoes = new MetaavaliacaoDAO().buscarTodas();
        }
        return metaavaliacoes;
    }

    public void setMetaavaliacoes(List<Metaavaliacao> metaavaliacoes) {
        this.metaavaliacoes = metaavaliacoes;
    }
    
    
    
}
